import { SysMenuDao } from "@common/dao/sys_menu.dao";
import { NextApiRequest, NextApiResponse } from "next";
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
    const { roleId } = req.query;
    const permissions = await SysMenuDao.getRolePermissions(Number(roleId));
    res.status(200).json(permissions);
}